package com.yeyks.hotel.param;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import javax.validation.constraints.NotBlank;

import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.Date;

@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class GrabTheOrderServiceGrabTheOrderParam implements Serializable {

    private static final long serialVersionUID = -7507451717081570779L;

    @ApiModelProperty(value = "时间戳:订单标识")
    @NotNull(message = "时间戳必填")
    private Long timestamp;

    @ApiModelProperty(value = "来源")
    @NotBlank(message = "来源必填")
    private String source;

    @ApiModelProperty(value = "城市名称")
    @NotBlank(message = "城市必填")
    private String city;

    @ApiModelProperty(value = "价格（单位：分）")
    @NotNull(message = "价格必填")
    private Integer price;

    @ApiModelProperty(value = "经度")
    @NotNull(message = "经度必填")
    private Double positionX;

    @ApiModelProperty(value = "纬度")
    @NotNull(message = "纬度必填")
    private Double positionY;

    @ApiModelProperty(value = "开始时间")
    @NotNull(message = "开始时间必填")
    private Date startDate;

    @ApiModelProperty(value = "结束时间")
    @NotNull(message = "结束时间必填")
    private Date endDate;

    @ApiModelProperty(value = "舒适度 1舒适 2高档 3豪华 4民宿专区,示例：1,2,3,4")
    private String comfortLevel;

    @ApiModelProperty(value = "用户id",hidden = true)
    private Integer userId;

}
